{extend name="layout:dailog" /}

{block name="title"}标题{/block}

{block name="body"}
<div class="layui-row">
    <div class="layui-col-lg12">
        <fieldset class="layui-elem-field">
            <legend>Demo - 新增Demo</legend>
            <div class="layui-field-box">
                <form class="layui-form" action="{:url('Demo/save')}">
                    <div class="layui-form-item">
                        <label class="layui-form-label">名称</label>
                        <div class="layui-input-inline">
                            <input type="text" name="name" placeholder="请输入Demo名称" autocomplete="off"
                                   class="layui-input" lay-verify="required"  lay-verType="tips">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </fieldset>
    </div>
</div>
{/block}

{block name="javascript"}
<script type="text/javascript" src="__STATIC__/backend/javascript/dw_form_submit.js"></script>
{/block}